<?php

abstract class Cat_Processor_Base extends Cat_ParamHolder implements Cat_Processor_Interface
{		
		
	function processFile( $file )
	{
		$contents = @file_get_contents( $file );
		
		if ( $contents === false )
		{
			throw new Cat_Exception( Cat_Exception_Messages::NO_FILE );
		}
		
		return $this->processString( $contents );
	}

	private $crawler = null;
	
	function getCrawler()
	{
		return $this->crawler;
	}
	
	function setCrawler( Cat_Crawler_Interface  $crawler )
	{
		$this->crawler = $crawler;
	}
}

?>